<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>已完成试卷</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
</head>
<body>
<nav th:fragment="menu(n)" class="ui inverted  segment">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">CUMT</h2>
            <h3 class="ui teal header item">在线答题系统</h3>
            <a href="#" th:href="@{/student/stu-index}"       class="item" th:classappend="${n==1} ? 'active'" >首页</a>
            <a href="#" th:href="@{/student/stu-imcomp-paper}" class="item" th:classappend="${n==2} ? 'active'" >未完成试卷</a>
            <a href="#" th:href="@{/student/stu-comp-paper}" class="item" th:classappend="${n==3} ? 'active'" >已完成试卷</a>
            <div class="right menu   ">
                <div class="ui dropdown item">
                    <div class="text">
                        <span th:text="${session.student.name}">Zhaohaihang</span>
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a href="#" th:href="@{/student/update-pass}" class="item">修改密码</a>
                        <a href="#" th:href="@{/student/logout}" class="item">注销</a>
                    </div>
                </div>
            </div>

        </div>
    </div>
</nav>

<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>

<script>
    $('.ui.dropdown').dropdown({
        on: 'hover'
    });
</script>
</body>
</html>